package com.ybwh.springboot3.controller.mock.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 *  用在类上指定mock开关打开时候执行对应类的同名方法
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2025/8/14 10:16
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Mocker {
    /**
     * 执行mock逻辑的类
     *
     * @return
     */
    Class<?> type();
}
